Platform Explorer / Nuxeo Platform 2021.49

Extension point restrictions

Documentation

Extension point defining restrictions of versioning option by document type. Contributions to this XP are available for VersioningService implementing ExtendableVersioningService interface.

Example:

    <restriction type="File">
        <options lifeCycleState="project">
            <option>NONE</option>
            <option default="true">MINOR</option>
        </options>
        <options lifeCycleState="approved"/>
    </restriction>
    <restriction type="*">
        <options lifeCycleState="*">
            <option default="true">NONE</option>
            <option>MINOR</option>
            <option>MAJOR</option>
        </options>
        <options lifeCycleState="approved">
            <option default="true">NONE</option>
            <option>MINOR</option>
        </options>
    </restriction>

"type" attribute is available for restriction tag and should be the name of a document type.

The restriction with type "*" will be used for all the document types if no specific restriction is contributed.

Options tag contains the different increment option available when saving a document. If the default attribute isn't set, the first tag will be used as default. Options tag should always have the lifeCycleState attribute. The life cycle state name "*" can be used to match any state: it'll be used by default if no other option with a matching state exists.

Following option gives no increment saving option when the current life cycle of the document is approved.

    <options lifeCycleState="approved"/>

Following options removes major increment option and set the minor increment option as default choice when the current life cycle of the document is projet.

    <options lifeCycleState="project">
        <none/>
        <minor default="true"/>
    </options>

If no restriction is specified, the restriction with "*" is used. If there is no default restriction, we fall back on the service implementation (ie: none, minor and major options are available).

@since 9.1

Aliases

  • org.nuxeo.ecm.core.versioning.VersioningService--restrictions

Contribution Descriptors

  • Class: org.nuxeo.ecm.core.versioning.VersioningRestrictionDescriptor

Contributions

No known contributions.